/*
 * Copyright (c) 2024. hallele, Inc All rights reserved.
 */

package cn.hallele.ms.filecenter.application.action.file.config;

import lombok.*;
import org.springframework.boot.context.properties.ConfigurationProperties;

import java.util.Map;

/**
 * hallele_ms_filecenter
 *
 * @author anle5
 * @since 2024/9/28 14:48
 */
@Getter
@Setter
@Builder
@NoArgsConstructor
@AllArgsConstructor
@ConfigurationProperties(prefix = "hal.ms.file-center.application.file")
public class FileProperties {
    /**
     * action-path映射
     */
    private Map<String, String> actionPath;

    /**
     * 最长临时文件url时间，单位 s
     */
    private int tempUrlMaxExpiresTime = 7 * 24 * 60 * 60;

    /**
     * 最长临时文件url时间，单位 s
     */
    private int tempUrlDefaultExpiresTime = 24 * 60 * 60;
}
